﻿using Lingmeng.EntityFrameworkCore.core;
using Microsoft.EntityFrameworkCore;
<<<<<<< HEAD
using Microsoft.IdentityModel.Tokens;
=======
>>>>>>> 8856840723d22eb62fe69127e83f72647e5f3bc6
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Video.Domain;
using Video.Domain.UserRepository;
using Video.Domain.Users;

namespace Video.EntityFrameworkCore.Users
{
<<<<<<< HEAD
    public class RoleRepository : Repository<VideoDbContext, UserRole>, IRoleRepository
    {
        
        public RoleRepository(VideoDbContext dbContetx) : base(dbContetx)
        {
            
        }
        public async Task<Role> GetAsync(string cold)
        {
           return await _dbContext.Role.FirstOrDefaultAsync(x=>x.Code==cold);
=======
    public class RoleRepository : Repository<VideoDbContext, UserInfo>, IRoleRepository
    {
        public RoleRepository(VideoDbContext dbContetx) : base(dbContetx)
        {
        }
        public async Task<Role> GetAsync()
        {
           return await _dbContext.Role.FirstOrDefaultAsync(x=>x.Code=="user");
>>>>>>> 8856840723d22eb62fe69127e83f72647e5f3bc6
        }
    }
}
